package com.sevenstudio.adu.gasing.game.element;

import org.andengine.util.color.Color;

import com.sevenstudio.adu.gasing.engine.Anchor;

public class GameElementRectangle
{
	private float	x, y, w, h;
	private float	r, g, b;
	private Anchor	anchor;
	private boolean autoResize;
	
	public GameElementRectangle(float x, float y, float w, float h, float r, float g, float b, boolean autoResize, Anchor anchor)
	{
		super();
		this.x = x;
		this.y = y;
		this.w = w;
		this.h = h;
		this.r = r;
		this.g = g;
		this.b = b;
		this.autoResize = autoResize;
		this.anchor = anchor;
	}
	
	public GameElementRectangle(float x, float y, float w, float h, Color color, boolean autoResize, Anchor anchor)
	{
		this(x, y, w, h, color.getRed(), color.getGreen(), color.getBlue(), autoResize, anchor);
	}
	
	public GameElementRectangle(float x, float y, float w, float h, Color color, Anchor anchor)
	{
		this(x, y, w, h, color.getRed(), color.getGreen(), color.getBlue(), false, anchor);
	}

	public GameElementRectangle(float x, float y, float w, float h, boolean autoResize, Color color)
	{
		this(x, y, w, h, color, autoResize, Anchor.NONE);
	}
	
	public float getX()
	{
		return x;
	}
	
	public void setX(float x)
	{
		this.x = x;
	}
	
	public float getY()
	{
		return y;
	}
	
	public void setY(float y)
	{
		this.y = y;
	}
	
	public float getW()
	{
		return w;
	}
	
	public void setW(float w)
	{
		this.w = w;
	}
	
	public float getH()
	{
		return h;
	}
	
	public void setH(float h)
	{
		this.h = h;
	}
	
	public float getR()
	{
		return r;
	}
	
	public void setR(float r)
	{
		this.r = r;
	}
	
	public float getG()
	{
		return g;
	}
	
	public void setG(float g)
	{
		this.g = g;
	}
	
	public float getB()
	{
		return b;
	}
	
	public void setB(float b)
	{
		this.b = b;
	}
	
	public boolean isAutoResize()
	{
		return autoResize;
	}

	public void setAutoResize(boolean autoResize)
	{
		this.autoResize = autoResize;
	}

	public Anchor getAnchor()
	{
		return anchor;
	}
	
	public void setAnchor(Anchor anchor)
	{
		this.anchor = anchor;
	}
}
